package org.zhangxiao.paladin2.admin.controller;

import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.zhangxiao.paladin2.admin.AdminBasicCtrl;
import org.zhangxiao.paladin2.admin.cfg.SystemCfg;
import org.zhangxiao.paladin2.common.exception.BizException;

/**
 *
 */

public interface SystemCfgCtrl<T extends SystemCfg> extends AdminBasicCtrl {

    T getCfg();

    void saveCfg(@RequestBody @Validated T cfg, BindingResult bindingResult) throws BizException;

    void flush();
}
